﻿using BingleMaps.ViewModels;
using Microsoft.Phone.Controls.Maps.Platform;
using Serialization;

namespace BingleMaps.Models
{
	public class ItineraryItem
	{
		public double Distance { get; set; }

		public string Instruction { get; set; }

		public Location Location { get; set; }

		[DoNotSerialize]
		public string DistanceString { get { return Distance.ToString("0.00") + " " + SettingsViewModel.AvailableDistanceUnits[ViewModelLocator.MainStatic.Settings.DistanceUnit]; } }
	}
}
